package top.hzy520.shopcart.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.hzy520.shopcart.entity.ProductSku;

import java.math.BigDecimal;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 17:10 2018/6/30
 */
@FeignClient(name = "valuation-service",fallback = ValuationFallBack.class)
public interface ValuationServiceClient {
    @RequestMapping("/valuation/goodsprice")
    BigDecimal valuationGoodsPrice(@RequestBody ProductSku productSku);
}
